package com.chenxin.transaction.service;

import com.chenxin.transaction.entity.AccountChangeEvent;

/**
 * @author chenxin
 */
public interface AccountInfoService {

    /**
     * 扣减金额
     */
    void updateAccountBalance(String accountNo, Double amount);


    //向mq发送转账消息
    void sendUpdateAccountBalance(AccountChangeEvent accountChangeEvent);

    //更新账户，扣减金额
    void doUpdateAccountBalance(AccountChangeEvent accountChangeEvent);
}